<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="include/base.jsp" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<!DOCTYPE html>
<!-- saved from url=(0033)http://192.168.0.77/pms/goal.html -->
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="${basePath }/css/bootstrap.min.css">
	<!-- <script type="text/javascript" src="http://lib.sinaapp.com/js/jquery/1.7.2/jquery.min.js"></script> -->
	<script type="text/javascript" src="${basePath }/js/jquery-1.8.2.min.js"></script>
	<script type="text/javascript" src="${basePath }/js/bootstrap.min.js"></script>
</head>
<body class="body">
	
	<jsp:include page="include/top.jsp"/>	
	
	
	<div class="container">
	  <div class="row">
		<jsp:include page="include/side.jsp">
			<jsp:param value="goal" name="tag"/>
		</jsp:include>
		
		<div class="span9">
			
			<div class="btn-group" style="float:right">
          		<a class="btn" href="http://192.168.0.77/pms/goal.html#"><i class="icon-cog"></i>操作</a>
          		<a class="btn dropdown-toggle" data-toggle="dropdown" href="http://192.168.0.77/pms/goal.html#"><span class="caret"></span></a>
          		<ul class="dropdown-menu">
            		<li><a href="${basePath }/goal/toNewGoal"><i class="icon-plus"></i>添加新目标</a></li>
            		<li><a href="${basePath }/task/toAllTask"><i class="icon-zoom-in"></i>浏览所有任务</a></li>
          		</ul>
        	</div>

			<div class="clear"></div>
				<c:if test="${fn:length(goalList) == 0 }">
					没有目标,去<a href="${basePath }/goal/toNewGoal">新建</a>
				</c:if>
			<c:forEach items="${goalList }" var="g">
				<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
					<li class="active">
						<a href="${basePath }/task/toTask?id=${g.id}"><i class="icon-th"></i>${g.g_name }</a>
					</li>
					<li style="float:right">
						<i class="icon-edit"></i><a href="${basePath }/goal/toEditGoal?id=${g.id}" class="link-black">编辑</a>
						<i class="icon-trash"></i><a href="${basePath }/goal/delGoal?id=${g.id}" class="link-black">删除</a>
					</li>
				</ul>
				<div class="wall">
					<p>${g.g_describle }</p>
					<div class="progress progress-danger progress-striped active ">
						<div class="bar" style="width: ${g.g_rate};cursor:pointer">已经完成${g.g_rate }</div>
					</div>
				</div>
			</c:forEach>
			
		</div>
	  </div>
	</div>
	<script type="text/javascript">
		
	</script>
</body></html>
